package main

import (
	"mssgserver/config"
	"mssgserver/net"
	"mssgserver/server/game"
)

func main() {
	//config.A() //调用测试方法
	host := config.File.MustValue("game_server", "host", "127.0.0.1")
	port := config.File.MustValue("game_server", "port", "8001")
	server := net.NewServer(host + ":" + port)
	server.NeedSecret(false)
	game.Init()                //初始化路由
	server.Router(game.Router) //路由和server的绑定
	server.Start()
}
